package org.apache.jsp.mypage;

import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.jsp.*;
import mypage.*;
import java.util.*;

public final class Point_jsp extends org.apache.jasper.runtime.HttpJspBase
    implements org.apache.jasper.runtime.JspSourceDependent {

  private static final JspFactory _jspxFactory = JspFactory.getDefaultFactory();

  private static java.util.List _jspx_dependants;

  private javax.el.ExpressionFactory _el_expressionfactory;
  private org.apache.AnnotationProcessor _jsp_annotationprocessor;

  public Object getDependants() {
    return _jspx_dependants;
  }

  public void _jspInit() {
    _el_expressionfactory = _jspxFactory.getJspApplicationContext(getServletConfig().getServletContext()).getExpressionFactory();
    _jsp_annotationprocessor = (org.apache.AnnotationProcessor) getServletConfig().getServletContext().getAttribute(org.apache.AnnotationProcessor.class.getName());
  }

  public void _jspDestroy() {
  }

  public void _jspService(HttpServletRequest request, HttpServletResponse response)
        throws java.io.IOException, ServletException {

    PageContext pageContext = null;
    HttpSession session = null;
    ServletContext application = null;
    ServletConfig config = null;
    JspWriter out = null;
    Object page = this;
    JspWriter _jspx_out = null;
    PageContext _jspx_page_context = null;


    try {
      response.setContentType("text/html;charset=euc-kr");
      pageContext = _jspxFactory.getPageContext(this, request, response,
      			null, true, 8192, true);
      _jspx_page_context = pageContext;
      application = pageContext.getServletContext();
      config = pageContext.getServletConfig();
      session = pageContext.getSession();
      out = pageContext.getOut();
      _jspx_out = out;

      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");
      java.util.Hashtable outputTable = null;
      synchronized (request) {
        outputTable = (java.util.Hashtable) _jspx_page_context.getAttribute("outputTable", PageContext.REQUEST_SCOPE);
        if (outputTable == null){
          outputTable = new java.util.Hashtable();
          _jspx_page_context.setAttribute("outputTable", outputTable, PageContext.REQUEST_SCOPE);
        }
      }
      out.write('\r');
      out.write('\n');
      java.util.Hashtable inputTable = null;
      synchronized (request) {
        inputTable = (java.util.Hashtable) _jspx_page_context.getAttribute("inputTable", PageContext.REQUEST_SCOPE);
        if (inputTable == null){
          inputTable = new java.util.Hashtable();
          _jspx_page_context.setAttribute("inputTable", inputTable, PageContext.REQUEST_SCOPE);
        }
      }
      out.write("\r\n");
      out.write("\r\n");
	
	ArrayList bonusCheckList = (ArrayList)outputTable.get("bonusCheckList");

      out.write("\r\n");
      out.write("\r\n");
      out.write("<SCRIPT language=\"JavaScript\">\r\n");
      out.write("\r\n");
      out.write("</SCRIPT>\r\n");
      out.write("\r\n");
      out.write("<html>\r\n");
      out.write("<head>\r\n");
      out.write("<title>적립금 내역</title>\r\n");
      out.write("</head>\r\n");
      out.write(" \r\n");
      out.write("<body text=\"#000000\" TOPmargin=\"0\" leftmargin=\"0\">\r\n");
      out.write("<CENTER>\r\n");
      out.write("<form method=\"post\" name=\"form1\">\r\n");
      out.write("  <table width=\"350\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">\r\n");
      out.write("    <tr> \r\n");
      out.write("      <td height=\"7\" colspan=\"3\"></td>\r\n");
      out.write("    </tr>\r\n");
      out.write("    <tr> \r\n");
      out.write("      <td colspan=\"5\"> \r\n");
      out.write("        <table width=\"370\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\" align=\"center\">\r\n");
      out.write("          <tr> \r\n");
      out.write("            <td> \r\n");
      out.write("              <div align=\"right\"><img src=\"/images/mypage/point.gif\" width=\"370\" height=\"44\"></div>\r\n");
      out.write("            </td>\r\n");
      out.write("          </tr>\r\n");
      out.write("          <tr height=\"5\"> \r\n");
      out.write("            <td colspan=\"5\"></td>\r\n");
      out.write("          </tr>\r\n");
      out.write("        </table>\r\n");
      out.write("      </td>\r\n");
      out.write("    </tr>\r\n");
      out.write("    <TR>\r\n");
      out.write("    \t<TD align=\"center\">\r\n");
      out.write("    \t</TD>\r\n");
      out.write("    \t<TD align=\"center\">\r\n");
      out.write("    \t\t적립일\r\n");
      out.write("    \t</TD>\r\n");
      out.write("    \t<TD align=\"center\">\r\n");
      out.write("    \t\t소멸일\r\n");
      out.write("    \t</TD>\r\n");
      out.write("    \t<TD align=center>\r\n");
      out.write("    \t\t상품명\r\n");
      out.write("    \t</TD>\r\n");
      out.write("    \t<TD align=center>\r\n");
      out.write("    \t\t적립금\r\n");
      out.write("    \t</TD>\r\n");
      out.write("    </TR>\r\n");
      out.write("    <tr>\r\n");
      out.write("\t\t<td colspan=\"5\" width=\"360\"><HR></td>\r\n");
      out.write("\t</tr>\r\n");

	for(int i=0; i<bonusCheckList.size(); i++)
	{
		Hashtable bonusCheckTable = (Hashtable)bonusCheckList.get(i);
		String seq = (String)bonusCheckTable.get("SEQ");
		String name = (String)bonusCheckTable.get("NAME");
		String start = (String)bonusCheckTable.get("START_DATE");
		String end = (String)bonusCheckTable.get("END_DATE");
		String point = (String)bonusCheckTable.get("POINT");
		int cc = 0;
		int count = cc + 1;
		
		String bgcolor= "#FFFFF";

      out.write("\r\n");
      out.write("\t<TR>\r\n");
      out.write("\t\t<TD align=\"center\">");
      out.print( count);
      out.write("</TD>\r\n");
      out.write("\t\t<TD align=\"center\">");
      out.print( start);
      out.write("</TD>\r\n");
      out.write("\t\t<TD align=\"center\">");
      out.print( end);
      out.write("</TD>\r\n");
      out.write("\t\t<TD align=\"center\">");
      out.print( name);
      out.write("</TD>\r\n");
      out.write("\t\t<TD align=\"center\">");
      out.print( point);
      out.write("</TD>\r\n");
      out.write("\t</TR>\r\n");

	}
	
	if(bonusCheckList.size()==0)
	{

      out.write("\r\n");
      out.write("\t<tr> \r\n");
      out.write("      <td colspan=\"5\"> \r\n");
      out.write("        \r\n");
      out.write("        <div align=center>적립금 내역이 없습니다.</div>\r\n");
      out.write("        \r\n");
      out.write("      </td>\r\n");
      out.write("    </tr>\r\n");
      out.write("\t\r\n");

	}

      out.write("\r\n");
      out.write("\t\r\n");
      out.write("\t\r\n");
      out.write("    \r\n");
      out.write("    <tr> \r\n");
      out.write("      <td>&nbsp;</td>\r\n");
      out.write("    </tr>\r\n");
      out.write("    <tr> \r\n");
      out.write("      <td colspan=\"5\"> \r\n");
      out.write("        <div align=\"center\"><img src=\"/images/button/but_ok.gif\" OnClick=\"javascript:self.close();\" style=\"cursor:hand\"></div>\r\n");
      out.write("      </td>\r\n");
      out.write("    </tr>\r\n");
      out.write("    <tr> \r\n");
      out.write("      <td>&nbsp;</td>\r\n");
      out.write("    </tr>\r\n");
      out.write("  </table>\r\n");
      out.write("</form>\r\n");
      out.write("</CENTER>\r\n");
      out.write("</body>\r\n");
      out.write("</html>\r\n");
    } catch (Throwable t) {
      if (!(t instanceof SkipPageException)){
        out = _jspx_out;
        if (out != null && out.getBufferSize() != 0)
          try { out.clearBuffer(); } catch (java.io.IOException e) {}
        if (_jspx_page_context != null) _jspx_page_context.handlePageException(t);
      }
    } finally {
      _jspxFactory.releasePageContext(_jspx_page_context);
    }
  }
}
